<?php


namespace app\admin\controller;


use app\admin\model\System\SysSettingModel;
use think\App;

class BaseController extends \app\BaseController
{

    const CODE_DATA = 0;
    const CODE_SUCCESS = 200;
    const CODE_ERROR = 400;//错误码
    const CODE_LOGIN = 1001;//登录token失效码
    protected $setting;

    public function __construct(App $app)
    {
        parent::__construct($app);
        $this->setting = SysSettingModel::getSysSettingWhere([]);
    }

}
